import { RegisterPage } from '../root';
import volunteerComponent from './volunteer';
import teamComponent from './team';
import projectComponent from './project';
import rewardComponent from './reward';
import dailyActiveComponent from './daily-active-vol';


RegisterPage({
    path: 'statistic',
    label: '数据统计分析',
    icon: 'fa fa-table',
    acl: 'statistic:volunteer',
    children: [
        {
            label: "志愿者分析",
            path: '/statistic/volunteer',
            url: '/statistic/volunteer',
            component: volunteerComponent,
            acl: 'statistic:volunteer',

        },
        {
            label: "志愿团队分析",
            path: '/statistic/team',
            url: '/statistic/team',
            component: teamComponent,
            acl: 'statistic:org',
        },
        {
            label: "志愿项目分析",
            path: '/statistic/project',
            url: '/statistic/project',
            component: projectComponent,
            acl: 'statistic:team',
        },
        {
            label: "志愿时长分析",
            path: '/statistic/reward',
            url: '/statistic/reward',
            component: rewardComponent,
            acl: 'statistic:team',
        },
        {
            label: "志愿服务活跃分析",
            path: '/statistic/daily_active',
            url: '/statistic/daily_active',
            component: dailyActiveComponent,
            acl: 'statistic:team',
        },
    ]
});
